namespace KTD.Web.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class 删除主键2 : DbMigration
    {
        public override void Up()
        {
            AlterColumn("dbo.Advs", "Id", c => c.Int(nullable: false));
            AlterColumn("dbo.Areas", "Id", c => c.Int(nullable: false));
            AlterColumn("dbo.Attachments", "Id", c => c.Int(nullable: false));
            AlterColumn("dbo.Comments", "Id", c => c.Int(nullable: false));
            AlterColumn("dbo.Dics", "Id", c => c.Int(nullable: false));
            AlterColumn("dbo.Houses", "Id", c => c.Int(nullable: false));
            AlterColumn("dbo.Members", "Id", c => c.Int(nullable: false));
            AlterColumn("dbo.Navs", "Id", c => c.Int(nullable: false));
            AlterColumn("dbo.News", "Id", c => c.Int(nullable: false));
            AlterColumn("dbo.Salers", "Id", c => c.Int(nullable: false));
        }
        
        public override void Down()
        {
            AlterColumn("dbo.Salers", "Id", c => c.Int(nullable: false, identity: true));
            AlterColumn("dbo.News", "Id", c => c.Int(nullable: false, identity: true));
            AlterColumn("dbo.Navs", "Id", c => c.Int(nullable: false, identity: true));
            AlterColumn("dbo.Members", "Id", c => c.Int(nullable: false, identity: true));
            AlterColumn("dbo.Houses", "Id", c => c.Int(nullable: false, identity: true));
            AlterColumn("dbo.Dics", "Id", c => c.Int(nullable: false, identity: true));
            AlterColumn("dbo.Comments", "Id", c => c.Int(nullable: false, identity: true));
            AlterColumn("dbo.Attachments", "Id", c => c.Int(nullable: false, identity: true));
            AlterColumn("dbo.Areas", "Id", c => c.Int(nullable: false, identity: true));
            AlterColumn("dbo.Advs", "Id", c => c.Int(nullable: false, identity: true));
        }
    }
}
